package com.gip.service;

import com.gip.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderService {
    //计算数据总数
    int countOrders();
    List<Order> findAllOrders(Map map);
    //根据订单id查找
    Order findOrderById(int id);
    //新版本：条件查找
    List<Order> findAllNewOrders(Order order);
    //更新
    int updateOrder(Order order);
    //删除订单
    int deleteOrder(int id);
    //添加订单
    int addOrder(Order order);
    //批量删除订单
    int deleteOrders(List list);
    //续费处理
    int rePay(Order order);
}
